package com.rpj.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Entity
@Table(name = "borrowandgive")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})
public class BorrowEntity {
@Id
	private String borrowid;
	private String bookid;
	private String proid;
	private String status;
	private String borrowbooktime;
	private String givebooktime;
	private String statusbook;
	private String data1;
	private String data2;
	public String getBorrowid() {
		return borrowid;
	}
	public void setBorrowid(String borrowid) {
		this.borrowid = borrowid;
	}
	public String getBookid() {
		return bookid;
	}
	public void setBookid(String bookid) {
		this.bookid = bookid;
	}
	public String getProid() {
		return proid;
	}
	public void setProid(String proid) {
		this.proid = proid;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getBorrowbooktime() {
		return borrowbooktime;
	}
	public void setBorrowbooktime(String borrowbooktime) {
		this.borrowbooktime = borrowbooktime;
	}
	public String getGivebooktime() {
		return givebooktime;
	}
	public void setGivebooktime(String givebooktime) {
		this.givebooktime = givebooktime;
	}
	public String getStatusbook() {
		return statusbook;
	}
	public void setStatusbook(String statusbook) {
		this.statusbook = statusbook;
	}
	public String getData1() {
		return data1;
	}
	public void setData1(String data1) {
		this.data1 = data1;
	}
	public String getData2() {
		return data2;
	}
	public void setData2(String data2) {
		this.data2 = data2;
	}
	
	public BorrowEntity(String borrowid, String bookid, String proid, String status, String borrowbooktime,
			String givebooktime, String statusbook) {
		super();
		this.borrowid = borrowid;
		this.bookid = bookid;
		this.proid = proid;
		this.status = status;
		this.borrowbooktime = borrowbooktime;
		this.givebooktime = givebooktime;
		this.statusbook = statusbook;
	}
	public BorrowEntity() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "BorrowEntity [borrowid=" + borrowid + ", bookid=" + bookid + ", proid=" + proid + ", status=" + status
				+ ", borrowbooktime=" + borrowbooktime + ", givebooktime=" + givebooktime + ", statusbook=" + statusbook
				+ "]";
	}
	
	
	
}
